import http from "@/utils/request"
// 获取类目
export let getCategoryApi =()=>http.get("/category/getCategory")
// 增加类目
export let addCategoryApi = (categoryName:any,categoryImgurl:any) => http.post('/category/addCategory', {
    categoryName,
    categoryImgurl
})
//删除类目(慎用)
export let delCategoryApi =(category_id:any)=>http.get("/category/delCategory",{
    params:{
        category_id
    }
})
// 修改类目
export let updateCategoryApi = (categoryName:string,category_id:any) => http.post('/category/updateCategory', {
    categoryName,
    category_id,
})
